WorldGenerator = class()

function WorldGenerator:init(world,rand)
    self.world = world
    self.rand = rand
end

function WorldGenerator:setBlock(x,y,z,blockid)
    return self.world:setBlockDirectly(x,y,z,blockid)
end

function WorldGenerator:setBlockWithNotify(x,y,z,blockid)
    return self.world:setBlock(x,y,z,blockid)
end

function WorldGenerator:getBlock(x,y,z)
    return self.world:getBlock(x,y,z)
end

function WorldGenerator:isAirBlock(x,y,z)
    return self.world:getBlock(x,y,z) == 0
end

function WorldGenerator:isSolidBlock(x,y,z)
    return self.world:isSolidBlock(x,y,z)
end

function WorldGenerator:isOpacityBlock(x,y,z)
    return self.world:isOpacityBlock(x,y,z)
end

function WorldGenerator:generate(x,y,z)
    
end
